<template>
    <div id="app">
        <router-view />
    </div>
</template>

<script>
export default {
    name: "App",
    created() {
        // 绑定键盘事件
        window.addEventListener("keydown", this.ctrl_s);
        window.addEventListener("keyup", this.ctrl_s);
    },
    methods: {
        ctrl_s(evt) {
            if (evt.ctrlKey && evt.keyCode === 83) {
                evt.preventDefault();
            }
        },
    },
};
</script>
